import request from "@/utils/request";

/**
 * @description 列表
 * @param params
 * @returns {*}
 */
export function list(params){
  return request({
    url:'/entrepreneurship/recruit',
    method:'GET',
    params
  })
}


export function merchantsList(params){
  return request({
    url:'/entrepreneurship/merchants',
    method:'GET',
    params
  })
}



/**
 * @description 审核
 * @param params
 * @returns {*}
 */
export function review(params){
  return request({
    url:'/examineEntrepreneurship',
    method:'GET',
    params
  })
}

/**
 * @description 新增/编辑招工用工
 * @param data
 * @returns {*}
 */
export function saveRecruit(data){
  return request({
    url:'/entrepreneurship/insertAndUpdate',
    method:'POST',
    data
  })
}


/**
 * @description 新增/编辑招商引资
 * @param data
 * @returns {*}
 */
export function saveMerchants(data){
  return request({
    url:'/entrepreneurship/merchants/insertAndUpdate',
    method:'POST',
    data
  })
}

/**
 * 删除
 * @param params
 * @returns {*}
 */
export function deleteRecruit(params){
  return request({
    url:'/entrepreneurship/del',
    method:'GET',
    params
  })
}

/**
 * 删除
 * @param params
 * @returns {*}
 */
export function deleteMerchants(params){
  return request({
    url:'/entrepreneurship/merchants/del',
    method:'GET',
    params
  })
}




/**
 * Test查询
 * @param params
 * @returns {*}
 */
export function testList(params){
  return request({
    url:'/recruit/getRecruitList',
    method:'GET',
    params
  })
}
